<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大屏数据可视化项目快速访问</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #eee;
            padding-bottom: 15px;
        }
        .project-info {
            margin-bottom: 30px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 5px;
        }
        .btn-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }
        .btn {
            display: inline-block;
            padding: 12px 24px;
            background-color: #409EFF;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        .btn:hover {
            background-color: #66b1ff;
        }
        .btn-dev {
            background-color: #67C23A;
        }
        .btn-dev:hover {
            background-color: #85ce61;
        }
        .component-list {
            margin-top: 30px;
        }
        .component-item {
            margin-bottom: 15px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 5px;
            transition: transform 0.2s;
        }
        .component-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .component-title {
            font-weight: bold;
            color: #409EFF;
            margin-bottom: 5px;
        }
        .component-desc {
            color: #666;
            font-size: 0.9em;
        }
        .footer {
            margin-top: 40px;
            text-align: center;
            color: #999;
            font-size: 0.9em;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>大屏数据可视化项目快速访问</h1>

        <div class="project-info">
            <p><strong>项目名称：</strong> big-screen-vue-datav</p>
            <p><strong>版本：</strong> 1.5.2</p>
            <p><strong>技术栈：</strong> Vue 2.6 + ECharts 4.6 + DataV</p>
        </div>

        <div class="btn-container">
            <a href="http://localhost:9090" class="btn" target="_blank">打开项目</a>
            <a href="http://localhost:9090/#/quickAccess" class="btn btn-dev" target="_blank">组件快速访问</a>
        </div>

        <div class="component-list">
            <h2>项目组件列表</h2>

            <div class="component-item">
                <div class="component-title">主布局 (MainLayout.vue)</div>
                <div class="component-desc">主布局组件，包含导航栏和内容区域</div>
            </div>

            <div class="component-item">
                <div class="component-title">展示界面 (Display.vue)</div>
                <div class="component-desc">展示界面组件，展示数据可视化大屏</div>
            </div>

            <div class="component-item">
                <div class="component-title">中心区域 (center.vue)</div>
                <div class="component-desc">中心区域组件，显示核心数据可视化内容</div>
            </div>

            <div class="component-item">
                <div class="component-title">中心左侧1 (centerLeft1.vue)</div>
                <div class="component-desc">中心左侧1组件，显示左侧数据面板1</div>
            </div>

            <div class="component-item">
                <div class="component-title">中心左侧2 (centerLeft2.vue)</div>
                <div class="component-desc">中心左侧2组件，显示左侧数据面板2</div>
            </div>

            <div class="component-item">
                <div class="component-title">中心右侧1 (centerRight1.vue)</div>
                <div class="component-desc">中心右侧1组件，显示右侧数据面板1</div>
            </div>

            <div class="component-item">
                <div class="component-title">中心右侧2 (centerRight2.vue)</div>
                <div class="component-desc">中心右侧2组件，显示右侧数据面板2</div>
            </div>

            <div class="component-item">
                <div class="component-title">底部左侧 (bottomLeft.vue)</div>
                <div class="component-desc">底部左侧组件，显示底部数据面板</div>
            </div>

            <div class="component-item">
                <div class="component-title">底部右侧 (bottomRight.vue)</div>
                <div class="component-desc">底部右侧组件，显示底部数据面板</div>
            </div>

            <div class="component-item">
                <div class="component-title">数据总览 (DataOverview.vue)</div>
                <div class="component-desc">数据总览模块，展示系统数据概况</div>
            </div>

            <div class="component-item">
                <div class="component-title">个人档案 (PersonalProfile.vue)</div>
                <div class="component-desc">个人档案模块，展示个人详细信息</div>
            </div>

            <div class="component-item">
                <div class="component-title">重点人列表 (KeyPersonList.vue)</div>
                <div class="component-desc">重点人列表模块，展示需要重点关注的人员</div>
            </div>

            <div class="component-item">
                <div class="component-title">988就医情况 (MedicalSituation.vue)</div>
                <div class="component-desc">988就医情况模块，展示就医相关数据</div>
            </div>

            <div class="component-item">
                <div class="component-title">数据录入 (DataEntry.vue)</div>
                <div class="component-desc">数据录入模块，用于录入系统数据</div>
            </div>

            <div class="component-item">
                <div class="component-title">系统设置 (SystemSettings.vue)</div>
                <div class="component-desc">系统设置模块，用于配置系统参数</div>
            </div>
        </div>

        <div class="footer">
            <p>© 2023 大屏数据可视化项目 | 基于 Vue + ECharts + DataV 构建</p>
        </div>
    </div>

    <script>
        // 检查项目是否已启动
        document.addEventListener('DOMContentLoaded', function() {
            const checkServer = async () => {
                try {
                    const response = await fetch('http://localhost:9090', { method: 'HEAD' });
                    if (response.ok) {
                        console.log('项目服务器已启动');
                    }
                } catch (error) {
                    console.warn('项目服务器未启动，请先运行 npm run serve 或 yarn serve');
                    alert('项目服务器未启动，请先运行 npm run serve 或 yarn serve');
                }
            };

            checkServer();
        });
    </script>
</body>
</html>